﻿<UserControl x:Class="GameFrameLibrary.Frames.MessageBannerFrame"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:input="clr-namespace:Prism.Games.GalEngine.Scripts.Parser.Input;assembly=InputModel"
             mc:Ignorable="d" 
             d:DesignHeight="576" d:DesignWidth="1024">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="SharedStyles.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <UserControl.InputBindings>
        <MouseBinding MouseAction="RightClick" Command="input:GameCommands.MessageBannerCancel" />
    </UserControl.InputBindings>
    <Grid Name="GameLayout">
        <Grid.Background>
            <SolidColorBrush Color="Black" Opacity=".5" />
        </Grid.Background>

        <Grid Name="MessageBannerLayout" >
            <Grid.RowDefinitions>
                <RowDefinition Height="1*" />
                <RowDefinition Height="1*" />
                <RowDefinition Height="1*" />
                <RowDefinition Height="1*" />
                <RowDefinition Height="1*" />
            </Grid.RowDefinitions>
            <Grid Grid.Row="2" >
                <Grid.Background>
                    <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" Opacity="1">
                        <GradientStop Color="Transparent" Offset="0" />
                        <GradientStop Color="Blue" Offset="0.38" />
                        <GradientStop Color="Transparent" Offset="1" />
                    </LinearGradientBrush>
                </Grid.Background>
                <Grid VerticalAlignment="Center" >
                    <StackPanel>
                        <TextBlock Name="MessageTextBlock" Text="XXXXXXXXXXXXX" FontSize="24" Margin="10" HorizontalAlignment="Center" />
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                            <Button Margin="10" Command="input:GameCommands.MessageBannerOK" MouseEnter="Button_MouseEnter" Width="200" >
                                <Button.Content>
                                    <TextBlock Text="OK" />
                                    <!--<Image Source="Images/BOK.png" />-->
                                </Button.Content>
                            </Button>
                            <Button Margin="10" Command="input:GameCommands.MessageBannerCancel" MouseEnter="Button_MouseEnter" Width="200" >
                                <Button.Content>
                                    <TextBlock Text="Cancel" />
                                    <!--<Image Source="Images/BCancel.png" />-->
                                </Button.Content>
                            </Button>
                        </StackPanel>

                    </StackPanel>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</UserControl>

